# 获取一个文件夹的大小 
param (
    # 定义一个名为 Name 的参数
    [string]$folderName='.'
    
    )
[System.Console]::OutputEncoding =     [System.Text.Encoding]::UTF8
$sum = (Get-ChildItem $folderName -Recurse -Force -ErrorAction SilentlyContinue | Measure-Object -Property Length -Sum).Sum
Write-Host "total $($sum/1gb)GB bytes"